package com.itshare.video.pojo.dto;

import com.itshare.video.common.aop.xss.annontation.CleanXSS;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 * @Author lyr
 * @create 2020/10/31 10:55
 */
@Data
public class VideoCommentDTO {
    @Null(message = "fromUserId 字段必须为null")
    private Integer fromUserId;
    @CleanXSS
    private String fromUserName;
    @CleanXSS
    private String atUserName;
    /**
     * at 人的名字
     */
    private Integer atUserId;
    /**
     * 内容
     */
    @CleanXSS
    @NotBlank(message = "评论消息不能为空")
    private String content;
    /**
     * 父节点ID
     */
    private Integer parentId;

}
